home *** CD-ROM | disk | FTP | other *** search
- // modeller_main.c
- //
- // main function for the modeller application
- //
- // Author: Rob Johnston
- // Date: Tuesday, January 14, 1992
- //
- // Copyright © 1992-94 Apple Computer, Inc., All Rights Reserved
- //
- //
-
-
-
- #include <ToolUtils.h>
-
- #define _AllocateGlobals_
-
- #include "Modeller_globals.h"
- #include "Modeller_prototypes.h"
-
- #include "Modeller_AEVT.h"
-
- #undef _AllocateGlobals_
-
- #include "Modeller_main.h"
- #include "Modeller_initialize.h"
- #include "Modeller_AEVT.h"
- #include "Modeller_event.h"
- #include "Modeller_errors.h"
- #include "Modeller_podium.h"
-
- //#include "MyErrorHandler.h"
-
-
-
- main(void)
-
- {
- const short kNumMoreMasters = 10 ;
-
- InitializeToolbox();
-
- SetCursor(*GetCursor(watchCursor)) ;
-
- #ifdef PODIUM_APP
- Podium_Init() ;
- #endif
-
- SplashSetUp() ; // put up a pretty picture to while away the time
-
- InitializeAppStuff( kNumMoreMasters ) ; // call maxApplZone and moremasters
-
- InitializeGlobals(); // init our app globals
- InitAEStuff(); // install our appleevent handlers
- SetupMenus(); // setup them menus
-
- SetCursor(&qd.arrow) ; // set up the cursor to something useful
-
- SplashTearDown() ; // get rid of the splash screen
-
- EventLoop(); // process events until the user quits
-
- DeallocateGlobals();
- }
-